<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/headMain.jsp" %>
<%@ page import="com.oms.wtj.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>后台管理系统</title>
	</head>
	<script type="text/javascript">
		$(document).ready(function(){
			$("div._a_contList_a").show();
			$("#loadIframe").attr("src" , "<%=basePath %>/user_userManagerList");
		});
		// 用户退出 
		function _logout() {
			top.location = "${base }/user_logout";
			if (top.location !== self.location) {
				top.location = "${base }/user_logout";
			}
		}
		// 修改用户资料
		function _profile() {
			top.location = "${base }/user_profile/${user.id }";
			if (top.location !== self.location) {
				top.location = "${base }/user_profile/${user.id }";
			}
		}
		// 进入前台主页
		function _frontIndex(){
			top.location = "${base }/user_frontIndex";
			if (top.location !== self.location) {
				alert("1");
				top.location = "${base }/user_frontIndex";
			}
		}
	</script>

	<body>
			<div class="header">
				<div class="otherInfo">
				 用户姓名:<font>${user.name }</font>
				 	<a href="javascript:_profile();"><img src="${base }/images/newnavigator/icon/_6_icon_1.png" width="28" height="28">修改资料</a>
					<a href="javascript:_frontIndex();"><img src="${base }/images/newnavigator/study_icon.png" width="28" height="28">前端页面</a>
					<a href="javascript:_logout();"><img src="${base }/images/newnavigator/exit_icon.png" width="28" height="28">退出登录</a>
				</div>
				<img src="${base }/images/newnavigator/logo.gif" width="161" height="55" />				
			</div>
			
			<div class="content" style="height: 486px;">
				<div class="leftContent"><!-- 左边导航条开始 -->
					<div class="dl-all" style="width:162px;">
							<div class="navList">
								<div class="dt-title"><h3 ><b>OMS管理系统</b></h3></div>
								<div class="dd-title dd-titleOn">
									<ul class="list"> <!-- 二级菜单开始 -->
										<c:forEach items="${modulelist }" var="list" varStatus="stauts">
											<c:if test="${stauts.index==0}">
												<li url="${base }/${list.ACTION }"  class="navActiveOn"><img src="${base }/images/newnavigator/icon/${list.ICON }" target="loadIframe"/>${list.MODULENAME }</li><!-- 二级餐单被按下的样式 class="navActiveOn" -->
											</c:if>
											<c:if test="${stauts.index!=0}">
												<li url="${base }/${list.ACTION }"  ><img src="${base }/images/newnavigator/icon/${list.ICON }" target="loadIframe"/>${list.MODULENAME }</li><!-- 二级餐单被按下的样式 class="navActiveOn" -->
											</c:if>
										</c:forEach>
									</ul>
								</div>
							</div>
					</div>					
				</div><!-- 左边导航条结束 -->
			</div>
			
			<div class="rightContent"><!-- 右边工作区开始 -->				
				<div class="cont_all" style="position:relative; left:0px; top:0px; z-index:103;">
					<div class="contList"><!-- 包含右边工作区div开始 -->
						<div class="infoList _a_contList_a">
							<iframe id="loadIframe" src="" frameborder="0" scrolling="no" allowtransparency=true></iframe>
						</div>
					</div><!-- 包含右边工作区div结束 -->
				</div>
			</div><!-- 右边工作区结束 -->
			
			<div class="footer"></div>
	</body>
</html>
<%
// 生成实体bean方法
//EntityBeanTool ebt = new EntityBeanTool();
//ebt.createMain();
%>